package ar.org.cfired.creditos;


import java.util.Date;
import org.hibernate.Session;

public class Observaciones {
	private int obs_id;
	private Date obs_fecha;
	private String obs_usuario;
	private int seg_id;
	private String obs_observacion;
	private int obs_padre;
	private String obs_version;
	private int obs_activo;
	private String obs_execution_id;
	private String obs_tipo;	
	private Session session;
	
	
	public Observaciones(){
		
	}
	public Observaciones(Session s){
		session = s;
	}

	public void setObsId(int obs_id){
		this.obs_id = obs_id;
	}
	public int getObsId(){
		return (this.obs_id);
	}
	
	public void setObsFecha(Date  obs_fecha){
		this.obs_fecha = obs_fecha;//obs_fecha.substring(0, Math.min(10, obs_fecha.length()));
	}
	public Date getObsFecha(){
		return(this.obs_fecha);
	}
	
	public void setObsUsuario(String obs_usuario){
		this.obs_usuario = obs_usuario.substring(0, Math.min(50, obs_usuario.length()));
	}
	public String getObsUsuario(){
		return (this.obs_usuario);
	}
	
	public void setSegId(int seg_id){
		this.seg_id = seg_id;
	}
	public int getSegId(){
		return (this.seg_id);
	}
	
	public void setObsObservaciones(String obs_observaciones){
		this.obs_observacion = obs_observaciones;
	}
	public String getObsObservaciones(){
		return(this.obs_observacion);
	}
	
	public void setObsPadre(int obs_padre){
		this.obs_padre = obs_padre;
		
	}
	public int getObsPadre(){
		return (this.obs_padre);
	}
	
	public void setObsVersion(String obs_version){
		this.obs_version = obs_version.substring(0, Math.min(50, obs_version.length()));;
	}
	public String getObsVersion(){
		return (this.obs_version);
	}
	
	public void setObsActivo(int obs_activo){
		this.obs_activo = obs_activo;
	}
	public int getObsActivo(){
		return (this.obs_activo);
	}
	
	public void setObsExecutionId(String obs_execution_id){
		this.obs_execution_id = obs_execution_id;
	}
	public String getObsExecutionId(){
		return (this.obs_execution_id);
	}
	public void setObsTipo(String obs_tipo){
		this.obs_tipo = obs_tipo.substring(0, Math.min(1, obs_tipo.length()));
	}
	public String getObsTipo(){
		return (this.obs_tipo);
	}
	
}
